export default {
  state: {
    now_school: '',
    schools: []
  },
  mutations: {
    setSchools (state, schools) {
      state.schools = schools
      state.now_school = schools.length > 0 ? schools[0] : null
    },
    setSchool (state, school) {
      state.now_school = school
    }
  },
  getters: {
    school: state => state.now_school,
    schools: state => state.schools
  },
  actions: {
  }
}
